#ifndef _GOLF_H
#define _GOLF_H


const int Len = 4;
struct golf
{
    char fullname[Len];
    int handicap;
};

// non-interractive version
void setgolf(golf  &g, const char * name, int hc);

// interactive version
// 可以在内部使用第一个函数
int setgolf(golf &g);

// function resets handicap to new value
void handicap(golf & g, int hc);

// function display contents of golf structure
void showgolf(const golf & g);



#endif
